<!DOCTYPE html>
<html ng-app="myapp">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../angular.min.js"></script>

</head>
<body ng-controller="bodyController">
    <input type="userName" ng-model="userObj.userName"><br>
    {{userObj.userName}}

    <script>
        var appModule = angular.module("myapp",[]);
        appModule.controller("bodyController",function ($scope){
           $scope.userObj = {userName:"",pwd:""};
        });
    </script>
</body>
</html>